# g++ -Wall -I. -I/usr/local/include/erpc -L/usr/local/lib matrix_server.cpp server.cpp -lerpc -lpthread -o server
# g++ -Wall -I. -I/usr/local/include/erpc -L/usr/local/lib matrix_client.cpp client.cpp -lerpc -lpthread -o client

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

DEFINES += LV_CONF_INCLUDE_SIMPLE LV_LVGL_H_INCLUDE_SIMPLE LV_DEMO_CONF_INCLUDE_SIMPLE

include($$PWD/../../lv_drivers/qt5/qt5.pri)

INCLUDEPATH += ./ ./main /mnt/qt6/lvgl /mnt/qt6/lvgl/lvgl-8.2.0 /mnt/qt6/lvgl/lv_drivers/qt5

LIBS += -L"/mnt/qt6/lvgl/"
LIBS += -llvgl -lm

LIBS +=  -L"/opt/erpc-1.12.0/lib" -lerpc
INCLUDEPATH += /opt/erpc-1.12.0/include/erpc

#include(/mnt/qt6/erpc/erpc-project/erpc-1.9.1/erpc_c/erpc.pri)
#include(/mnt/qt6/erpc/erpc-1.12.0/erpc_c/erpc.pri)

#include(./lvgl_designer-110/lvgl_designer_server.pri)
include(./lvgl_designer-112/lvgl_designer_server.pri)

SOURCES += \
    img_demo_widgets_avatar.c \
    main/lvgl_is_designer_svc.c \
    main/lvgl_isd_resource.c \
    main/main.cpp \
    main/mouse_cursor_icon.c \
    main/server_thread.cpp

HEADERS += \
    lv_conf.h \
    lv_demo_conf.h \
    lv_drv_conf.h \
    main/lvgl_isd_resource.h \
    main/rtservice.h \
    main/server_thread.h

DISTFILES += \
    ../lvgl_erpc/is_designer.erpc
